package com.mingqijia.gassafety.shared.constant.warnStrategy;

public enum NotifyObjTypeTypeEnum {

    LOCAL(-1, "本地消息"),
    CONSUMER(0, "客户"),

    STAFF(1, "企业员工"),

    WX_OPENID(2, "微信（openId）"),

    EXTRA(3, "额外手机号");

    /**
     * 编码
     */
    private Integer code;
    /**
     * 值
     */
    private String value;

    NotifyObjTypeTypeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    private static final NotifyObjTypeTypeEnum[] VALUES = NotifyObjTypeTypeEnum.values();

    public static NotifyObjTypeTypeEnum matcher(String code) {
        for (NotifyObjTypeTypeEnum ele : VALUES) {
            if (ele.code.equals(code)) {
                return ele;
            }
        }
        // code为 no正好为
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String interval) {
        this.value = value;
    }


}
